package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 模板配送区域表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("freight_dispatch_area")
public class FreightDispatchArea extends Model<FreightDispatchArea> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 商户id
     */
    @TableField("tenant_id")
    private String tenantId;
    /**
     * 运费模板id
     */
    @TableField("freight_template_id")
    private String freightTemplateId;
    /**
     * 区域名称
     */
    private String name;
    /**
     * 区域名称key
     */
    @TableField("address_key")
    private String addressKey;
    /**
     * 首件
     */
    @TableField("first_part")
    private Integer firstPart;
    /**
     * 运费
     */
    private BigDecimal freight;
    /**
     * 续件
     */
    @TableField("sequel_part")
    private Integer sequelPart;
    /**
     * 续费
     */
    @TableField("sequel_freight")
    private BigDecimal sequelFreight;
    /**
     * 是否默认(0:否;1:是)
     */
    private Integer defaults;
    /**
     * 是否包邮(0:否;1:是)
     */
    private Integer pinkage;
    /**
     * 包邮规则(1:价格,2:件数)
     */
    @TableField("pinkage_rule")
    private Integer pinkageRule;
    /**
     * 包邮值
     */
    @TableField("pinkage_value")
    private String pinkageValue;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getFreightTemplateId() {
        return freightTemplateId;
    }

    public void setFreightTemplateId(String freightTemplateId) {
        this.freightTemplateId = freightTemplateId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddressKey() {
        return addressKey;
    }

    public void setAddressKey(String addressKey) {
        this.addressKey = addressKey;
    }

    public Integer getFirstPart() {
        return firstPart;
    }

    public void setFirstPart(Integer firstPart) {
        this.firstPart = firstPart;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public Integer getSequelPart() {
        return sequelPart;
    }

    public void setSequelPart(Integer sequelPart) {
        this.sequelPart = sequelPart;
    }

    public BigDecimal getSequelFreight() {
        return sequelFreight;
    }

    public void setSequelFreight(BigDecimal sequelFreight) {
        this.sequelFreight = sequelFreight;
    }

    public Integer getDefaults() {
        return defaults;
    }

    public void setDefaults(Integer defaults) {
        this.defaults = defaults;
    }

    public Integer getPinkage() {
        return pinkage;
    }

    public void setPinkage(Integer pinkage) {
        this.pinkage = pinkage;
    }

    public Integer getPinkageRule() {
        return pinkageRule;
    }

    public void setPinkageRule(Integer pinkageRule) {
        this.pinkageRule = pinkageRule;
    }

    public String getPinkageValue() {
        return pinkageValue;
    }

    public void setPinkageValue(String pinkageValue) {
        this.pinkageValue = pinkageValue;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "FreightDispatchArea{" +
        "id=" + id +
        ", tenantId=" + tenantId +
        ", freightTemplateId=" + freightTemplateId +
        ", name=" + name +
        ", addressKey=" + addressKey +
        ", firstPart=" + firstPart +
        ", freight=" + freight +
        ", sequelPart=" + sequelPart +
        ", sequelFreight=" + sequelFreight +
        ", defaults=" + defaults +
        ", pinkage=" + pinkage +
        ", pinkageRule=" + pinkageRule +
        ", pinkageValue=" + pinkageValue +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
